const msg = "\x52\x54\x53\x50\x2f\x31\x2e\x30\x20\x32\x30\x30\x20\x4f" +
"\x4b\x0a\x43\x53\x65\x71\x3a\x20\x31\x0a\x43\x6f\x6e\x74\x65\x6e" +
"\x74\x2d\x54\x79\x70\x65\x3a\x20\x61\x70\x70\x6c\x69\x63\x61\x74" +
"\x69\x6f\x6e\x2f\x73\x64\x70\x0a\x43\x6f\x6e\x74\x65\x6e\x74\x2d" +
"\x4c\x65\x6e\x67\x74\x68\x3a\x20\x39\x33\x0d\x0a\x0d\x0a\x6d\x3d" +
"\x76\x69\x64\x65\x6f\x20\x30\x20\x52\x54\x50\x2f\x41\x56\x50\x20" +
"\x39\x36\x0a\x61\x3d\x72\x61\x6e\x67\x65\x3a\x6e\x70\x74\x3d\x30" +
"\x2d\x0a\x61\x3d\x72\x74\x70\x6d\x61\x70\x3a\x39\x36\x20\x48\x32" +
"\x36\x34\x2f\x39\x36\x30\x30\x30\x0a\x61\x3d\x6d\x69\x6d\x65\x74" +
"\x79\x70\x65\x3a\x73\x74\x72\x69\x6e\x67\x3b\x22\x76\x69\x64\x65" +
"\x6f\x2f\x48\x32\x36\x34\x22\x0d\x0a\x0d\x0a";


const httpZ = require ('./lib/http-z');

console.log(msg);
const response = httpZ.parse(msg);


				const request = {
					method		: "DESCRIBE",
					protocol	: 'RTSP',
					protocolVersion	: 'RTSP/1.0',
					host		: "this.url.hostname",
					path		: "path",
					params		: {p1: 'v1'},
					headers: [
						{ name : "CSeq"		, values : [{value: 1}]},
						{ name : "User-Agent"	, values : [{value: "medooze-rtsp-client"}]}
					]
				};
//Serialize
				const str = httpZ.build(request) + "\r\n";
				
				console.log(str+"x");
